package com.eduadmin.mapper;

import com.eduadmin.entity.SingleMax;
import org.springframework.stereotype.Component;
/**
 * @author zlc001
**/
import java.util.List;
import java.util.Map;

@Component
public interface SingleMaxMapper {
    // zlc 批量插入
    int batchInsert(List<SingleMax> list);
//    zlc 批量删除,备用
//    int batchDelete(List<String> list);
    // 查询满足条件的记录
    List<SingleMax> getAllByParams(Map<String,Object> paraMap);
    // 查询满足条件的记录条数
    int getAllNumberByParams(Map<String,Object> paraMap);
    // 本次使用
    int deleteByParams(Map<String,Object> paraMap);

    int deleteByPrimaryKey(Integer singleMaxId);

    int insert(SingleMax record);

    int insertSelective(SingleMax record);

    SingleMax selectByPrimaryKey(Integer singleMaxId);

    int updateByPrimaryKeySelective(SingleMax record);

    int updateByPrimaryKey(SingleMax record);
}